/*
 * @Description: 
 * @Author: Jinzhu Liu
 * @Date: 2021-11-24 20:47:04
 * @LastEditor: Jinzhu Liu
 * @LastEditTime: 2021-12-16 22:09:55
 */
import { Context } from "koa";
import logger from "../logger";
import AdminService from "../service/admin_service";

class IndexController {
    async index(ctx: Context) {
        // logger.info("msg", "msg")
        // ctx.body = [1, 2, 3, 4, 5, 6]

        const admin = await AdminService.getAdminById(1)
        ctx.body = admin
    }
}

export default new IndexController